/**
 * Created by zhouli on 2019/3/14
 */
import React from 'react';
import LogoImg from 'images/logo.png';
import 'styles/main/components/custom-logo.scss';
export default function CustomLogo(tenant) {
  if (tenant.showCustomLogo && tenant.logoURL) {
    return (
      <div className="icon-logo">
        <img src={tenant.logoURL}/>
      </div>
    )
  } else {
    return (
      <div className="icon-logo">
        <img src={LogoImg}/>
      </div>
    )
  }
}
